package org.lc.stk.model.question.impl.choice.sigleChoice;

import org.hibernate.annotations.Comment;
import org.lc.stk.model.question.Answer;
import org.lc.stk.model.question.impl.choice.Option;

import jakarta.persistence.CascadeType;
import jakarta.persistence.Entity;
import jakarta.persistence.OneToOne;

/**
 * 单选题答案
 */
@Comment("单选题答案")
@Entity
public class SingleChoiceAnswer extends Answer {

    /**
     * 答案
     */
    @OneToOne(cascade = CascadeType.ALL)
    @Comment("答案选项")
    private Option answer;

    public Option getAnswer() {
        return answer;
    }

    public void setAnswer(Option answer) {
        this.answer = answer;
    }
}
